package com.huafv.flyauth.web.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huafv.flyauth.web.admin.entity.SysDictType;
import com.huafv.flyauth.web.admin.entity.SysDictTypePage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * (SysDictType)表数据库访问层
 *
 * @author makejava
 * @since 2023-05-18 16:40:20
 */
@Mapper
@SuppressWarnings("all")
public interface SysDictTypeMapper extends BaseMapper<SysDictType> {

   /* @Select("select dict_id,dict_name,dict_type,status,create_time,update_time,remark" +
            "from sys_dict_type where status = '0'")*/
    @Select("select * from sys_dict_type where status = '0'")
    List<SysDictType> dictTypeList();

    int insertDictType(SysDictType sysDictType);

    List<SysDictType> getByCondition(SysDictTypePage sysDictTypePage);

    void deleteDictTypeByIds(Integer[] ids);
}